package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.TravelComment;
import cn.wolfcode.wolf2w.domain.UserInfo;
import cn.wolfcode.wolf2w.query.TravelCommentQuery;
import org.springframework.data.domain.Page;

import java.util.List;


public interface ITravelCommentService {


    /**
     * 查询单个对象
     * @param id
     * @return TravelComment
     */
    TravelComment get(String id);

    /**
     * 查询对象集合
     * @param
     * @rettravelCommentrn
     */
    List<TravelComment> listAll();


    /**
     * 用于分页排序,高级查询
     * @param qo
     */

    Page<TravelComment> query(TravelCommentQuery qo);

    /**
     * 添加游记评论
     * @param travelCommen
     * @param userInfo
     */


    /**
     * 新增操作
     * @param travelComment
     */
    void save(TravelComment travelComment);


    void commentAdd(TravelComment comment);

    void addComment(TravelComment comment,UserInfo userInfo);
}
